<!DOCTYPE html>
<html lang="en">

	<head>
		<meta charset="utf-8">
		<meta name="renderer" content="webkit|ie-comp|ie-stand" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<link rel="stylesheet" type="text/css" href="layui/css/layui.css" media="all">
		<link rel="stylesheet" type="text/css" href="css/index.css" />
		<title>设备设置</title>
	</head>

	<body>
		<section class="layui-larry-box">
			<div class="larry-personal">
				<div class="layui-tab">
					<blockquote class="layui-elem-quote mylog-info-tit">
						<ul class="handle-box">
							<li class="handle-item">
								设备名称：<span id="deviceName" name="deviceName"></span>
							</li>
						</ul>
					</blockquote>
					<div class="layui-clear">
						<form class="layui-form" id="form-three" action="">
							<input type="hidden" id="deviceId" name="deviceId" />
							<div class="layui-form-item">
								<label class="layui-form-label" style="width: 150px;">上传间隔（分钟）</label>
								<div class="layui-input-inline" style="width: 60%;">
									<input type="text" name="step" id="step" placeholder="2" autocomplete="off" class="layui-input" onchange="much()">
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label" style="width: 150px;">报警间隔（分钟）</label>
								<div class="layui-input-inline" style="width: 60%;">
									<input type="text" name="alarmStep" id="alarmStep" placeholder="10" autocomplete="off" class="layui-input" onchange="muchs()">
								</div>
							</div>
							<label class="layui-form-label" style="width: 150px; font-weight:bold;">通道一</label>
							<div class="layui-form-item">
								<label class="layui-form-label" style="width: 150px;">温度上下限</label>
								<div class="layui-input-block">
									<input type="text" name="temMinCh1" id="temMinCh1" placeholder="下限" class="layui-inputs" onchange="value=/[-+]*[0-9][.][0-9]+|[-+]*[1-9][0-9]*|^[0]$/.test(value)?value:''">~
									<input type="text" name="temMaxCh1" id="temMaxCh1" placeholder="上限" class="layui-inputs" onchange="value=/[-+]*[0-9][.][0-9]+|[-+]*[1-9][0-9]*|^[0]$/.test(value)?value:''">
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label" style="width: 150px;">湿度上下限</label>
								<div class="layui-input-block">
									<input type="text" name="humMinCh1" id="humMinCh1" placeholder="下限" autocomplete="off" class="layui-inputs" onkeyup="value=/^\d+(\.\d{2})?$/.test(value)?value:''">~
									<input type="text" name="humMaxCh1" id="humMaxCh1" placeholder="上限" autocomplete="off" class="layui-inputs" onkeyup="value=/^\d+(\.\d{2})?$/.test(value)?value:''">
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label" style="width: 150px;">温度矫正</label>
								<div class="layui-input-block">
									<span style="color: red; padding-right: 52px;">范围-5~5，默认0</span>
									<input type="text" name="temAdjustCh1" id="temAdjustCh1" placeholder="0" autocomplete="off" class="layui-inputs" onchange="value=/^([0-5]?|5)$|^-([0-5]?|5)$/.test(value)?value:''">
								</div>
								<label class="layui-form-label" style="width: 150px; font-weight:bold;">通道二</label>
								<div class="layui-form-item">
									<label class="layui-form-label" style="width: 150px;">温度上下限</label>
									<div class="layui-input-block">
										<input type="text" name="temMinCh2" id="temMinCh2" placeholder="下限" class="layui-inputs" onchange="value=/[-+]*[0-9][.][0-9]+|[-+]*[1-9][0-9]*|^[0]$/.test(value)?value:''">~
										<input type="text" name="temMaxCh2" id="temMaxCh2" placeholder="上限" class="layui-inputs" onchange="value=/[-+]*[0-9][.][0-9]+|[-+]*[1-9][0-9]*|^[0]$/.test(value)?value:''">
									</div>
								</div>
								<div class="layui-form-item">
									<label class="layui-form-label" style="width: 150px;">湿度上下限</label>
									<div class="layui-input-block">
										<input type="text" name="humMinCh2" id="humMinCh2" placeholder="下限" autocomplete="off" class="layui-inputs" onkeyup="value=/^\d+(\.\d{2})?$/.test(value)?value:''">~
										<input type="text" name="humMaxCh2" id="humMaxCh2" placeholder="上限" autocomplete="off" class="layui-inputs" onkeyup="value=/^\d+(\.\d{2})?$/.test(value)?value:''">
									</div>
								</div>
								<div class="layui-form-item">
									<label class="layui-form-label" style="width: 150px;">温度矫正</label>
									<div class="layui-input-block">
										<span style="color: red;padding-right: 52px;">范围-5~5，默认0</span>
										<input type="text" name="temAdjustCh2" id="temAdjustCh2" placeholder="0" autocomplete="off" class="layui-inputs" onchange="value=/^([0-5]?|5)$|^-([0-5]?|5)$/.test(value)?value:''">
									</div>
								</div>
								<div class="layui-form-item">
								   <label class="layui-form-label" style="width: 150px;">开启离线报警</label>
								    <div class="layui-input-block">
								        <input type="radio" name="offlineAlarmStr" id="onofflineAlarm" value="on" title="是">
										<input type="radio" name="offlineAlarmStr" id="offofflineAlarm" value="off" title="否" checked>
								    </div>
								</div>
								<div class="layui-form-item">
								   <label class="layui-form-label" style="width: 150px;">开启超限报警</label>
								    <div class="layui-input-block">
								        <input type="radio" name="overrunAlarmStr" id="onoverrunAlarm" value="on" title="是">
										<input type="radio" name="overrunAlarmStr" id="offoverrunAlarm" value="off" title="否" checked>
								    </div>
								</div>
								<div class="layui-form-item">
								   <label class="layui-form-label" style="width: 150px;">开启故障报警</label>
								    <div class="layui-input-block">
								        <input type="radio" name="brokenAlarmStr" id="onbrokenAlarm" value="on" title="是">
										<input type="radio" name="brokenAlarmStr" id="offbrokenAlarm" value="off" title="否" checked>
								    </div>
								</div>
								<div class="layui-form-item">
								   <label class="layui-form-label" style="width: 150px;">开启电池故障报警</label>
								    <div class="layui-input-block">
								        <input type="radio" name="batteryAlarmStr" id="onbatteryAlarm" value="on" title="是">
										<input type="radio" name="batteryAlarmStr" id="offbatteryAlarm" value="off" title="否" checked>
								    </div>
								</div>
						</form>
						</div>
						<div class="layui-clear" style="text-align: center;">
							<span>
							<a class="layui-btn site-demo-active" id="btn-adduser">保存</a>
						</span>
						</div>
						</div>
					</div>
		</section>
		<script type="text/javascript" src="//cdn.bootcss.com/jquery/2.2.3/jquery.js"></script>
		<script type="text/javascript" src="layui/layui.js"></script>
		<script type="text/javascript" src="js/common.js"></script>
		<script src="js/facillitySet.js"></script>
	</body>

</html>